package com.bong.panpan.bongcharttools;

import android.content.Intent;
import android.os.Bundle;

import com.bong.panpan.bongcharttools.custom.SpUtil;
import com.bong.panpan.bongcharttools.activity.TempCollectActivity;
import com.bong.panpan.bongcharttools.util.PermissionRequireActivity;

public class SplashActivity extends PermissionRequireActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        SpUtil.getInstance().init(getApplicationContext());
    }

    @Override
    protected void permissionInitOk() {
        finish();
        startActivity(new Intent(this,TempCollectActivity.class));
        overridePendingTransition(android.R.anim.fade_in,android.R.anim.fade_out);
    }
}
